package com.tkjt.pms.modules.repos.mapper;

import com.tkjt.pms.common.entity.TkIndexInfo;
import com.tkjt.pms.modules.repos.vo.IndexInfoTreeVO;
import com.tkjt.pms.modules.tkindexvaluerule.entity.TkIndexValueRule;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface IndexRepoMapper {
    List<IndexInfoTreeVO> selectValueAndCodeByTypeAndGroup(Map<String, Object> param);

    public void delNode(Map<String, Object> param);

    public void addNode(TkIndexInfo tkIndexInfo);

    public List<String> selectIndexNameByIndexCode(Map<String, Object> param);

    public List<Map<String,Object>> queryIndexValueAttrs(Map<String, Object> param);
    
    public List<Map<String,Object>> queryIndexAttrs(Map<String, Object> param);

    public void delAttrs(Map<String, Object> param);

    public List<TkIndexInfo> selectInfosByAttrsParam(Map<String, Object> param);

    public TkIndexInfo selectTempInfosByParam(Map<String, Object> param);

    public List<TkIndexValueRule> indexRuleDatagridPageList(Map<String, Object> param);

    public int indexRuleDatagridPageCount(Map<String, Object> param);

    public List<Map<String,Object>> searchIndexValue(Map<String, Object> param);

    Map<String,Object> getMonthIndexValueForParam(Map<String,Object> param);

    Map<String,Object> getIndexYearMonthByParam(Map<String,Object> param);

    //根据条件查询指标，以Map对象返回
    List<Map<String,Object>> getImportIndexInfoMapByParamater(Map<String,Object> param);

    int getImportIndexInfoCountMapByParamater(Map<String,Object> param);

}
